package com.qys.livesMall.product.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qys.livesMall.common.result.R;
import com.qys.livesMall.product.entity.H2ProductGoodsinfo;
import com.qys.livesMall.product.entity.H2ProductProduct;
import com.qys.livesMall.product.entity.query.RequestData;
import com.qys.livesMall.product.model.H2ProductGoodsinfoDto;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gmx
 * @since 2023-05-17
 */
public interface H2ProductGoodsinfoService extends IService<H2ProductGoodsinfo> {
    R<Long> saveProduct(H2ProductProduct h2ProductProduct);

    void upd(H2ProductProduct h2ProductProduct);
    R<H2ProductProduct> product(Long id);
    R<H2ProductProduct> appProduct(Long id);
    R<IPage<H2ProductGoodsinfo>> listPageByCatid(Page<H2ProductGoodsinfo> page);
    R<IPage<H2ProductGoodsinfoDto>> appListPageByCatid(RequestData<H2ProductGoodsinfo> data);
    R delete(Long id);
    R marketable(Long id);
}
